package com.my.screenadapter.View.myDialog;

import android.content.Context;
import android.content.DialogInterface;

import androidx.appcompat.app.AlertDialog;

import com.tencent.bugly.crashreport.CrashReport;

/**
 * Created by ${张英杰} on 2018/1/18.
 */
public class DialogNormal {

    //提示
    public static void remind(Context context, CharSequence msg){
        try {
            if (context==null){
                return;
            }
                final AlertDialog.Builder remind = new AlertDialog.Builder(context)
                        .setMessage(msg)
                        .setPositiveButton("确定", new DialogInterface.OnClickListener() {
                            @Override
                            public void onClick(DialogInterface dialogInterface, int i) {

                            }
                        });
            remind.show();
        }catch (Exception e){
            e.printStackTrace();
            CrashReport.postCatchedException(e);
        }

    }
}
